import request from "@/utils/request";
/**
 * 获取部门列表
 */
export const getDepartmentListService = () => {
  return request.get("/company/department");
};
/**
 * 获取部门负责人列表
 */
export const getDeptMannagerListService = () => {
  return request.get("/sys/user/simple");
};
/**
 * 新增部门
 * @param {} data
 * @returns
 */
export const addDepartmentService = (data) => {
  return request.post("/company/department", data);
};

/**
 * 编辑部门
 */
export const editDepartmentService = (data) => {
  return request.put(`/company/department/${data.id}`, data);
};
/**
 * 删除部门
 */
export const deleteDepartmentService = (id) => {
  return request.delete("/company/department/" + id);
};
